﻿<div class="panel panel-default">
    <!--ng-controller="DicSetAddCtrl"-->
    <div class="panel-heading font-bold">数据元目录 - {{type}}</div>
    <div class="panel-body">
        <form name="form" class="bs-example form-horizontal form-validation">
            <div class="form-group">
                <label class="col-lg-2 control-label">名称<span class="message">*</span></label>
                <div class="col-lg-10">
                    <input type="text" class="form-control" placeholder="数据元目录名称" ng-model="deDictionary.Value" ng-blur="getInputCode()" required set-focus />
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">输入码</label>
                <div class="col-lg-10">
                    <input type="text" class="form-control" placeholder="输入码" ng-model="deDictionary.InputCode" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">英文名</label>
                <div class="col-lg-10">
                    <input type="text" class="form-control" placeholder="数据元目录英文名" ng-model="deDictionary.EnglishName" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">部分序号</label>
                <div class="col-lg-4">
                    <input type="text" class="form-control" placeholder="第几部分" ng-model="deDictionary.Order" />
                </div>
                <label class="col-lg-2 control-label">状态</label>
                <div class="col-lg-4">
                    <select class="form-control" ng-model="deDictionary.StatusCode" required ng-disabled="type=='添加'">
                        <option value="1">创建</option>
                        <option value="2">待审核</option>
                        <option value="3">使用中</option>
                        <option value="4">作废</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">备注</label>
                <div class="col-lg-10">
                    <input type="text" class="form-control" placeholder="数据元目录备注" ng-model="deDictionary.Description" />
                </div>
            </div>

            <accordion>
                <accordion-group is-open="status.open" class="b-info">
                    <accordion-heading>
                        公用属性<i class="pull-right fa fa-angle-right" ng-class="{'fa-angle-down': status.open, 'fa-angle-right': !status.open}"></i>
                    </accordion-heading>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">注册状态</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" placeholder="注册状态" ng-model="deDictionary.Description" />
                        </div>
                        <label class="col-lg-2 control-label">版本</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" placeholder="版本" ng-model="deDictionary.Description" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">相关环境</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" placeholder="相关环境" ng-model="deDictionary.Description" />
                        </div>
                        <label class="col-lg-2 control-label">分类模式</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" placeholder="分类模式" ng-model="deDictionary.Description" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">注册机构</label>
                        <div class="col-lg-10">
                            <input type="text" class="form-control" placeholder="注册机构" ng-model="deDictionary.Description" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">主管机构</label>
                        <div class="col-lg-10">
                            <input type="text" class="form-control" placeholder="主管机构" ng-model="deDictionary.Description" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">提交机构</label>
                        <div class="col-lg-10">
                            <input type="text" class="form-control" placeholder="提交机构" ng-model="deDictionary.Description" />
                        </div>
                    </div>
                </accordion-group>
            </accordion>
            <div class="line line-dashed b-b line-lg"></div>
            <div class="form-group">
                <div class="col-lg-10 col-lg-offset-2">
                    <button type="submit" class="btn btn-success" ng-click="ok()" ng-disabled="form.$invalid">保存</button>
                    <button type="submit" class="btn btn-primary" ng-click="okNext()" ng-disabled="form.$invalid" ng-if="type=='添加'">保存并继续添加</button>
                    <button type="submit" class="btn btn-default" ng-click="cancel()">取消</button>
                    <span class="message">{{message}}</span>
                </div>
            </div>
        </form>
    </div>
</div>